<?php


class News_Model_DbTable_News_Row extends WSB_Db_Row
{

	public function init()
	{
		$this->_formConfigPath = WSB_XTENSION_PATH . 'news/models/DbTable/News/form.config';
	}

	/**
	 * @return string
	 */
	public function getTitle()
	{
	    return $this->title;
	}

	/**
	 * @return string
	 */
	public function getFirstImage()
	{
		$images = WSB_Div::csvToArray($this->images, ',');
		return empty($images) ? '' : reset($images);
	}

	/**
	 * @return array
	 */
	public function getImages()
	{
		return WSB_Div::csvToArray($this->images, ',');
	}

}